package com.xbjtech.model;

import java.io.Serializable;
import java.util.List;

import javax.persistence.Id;
import javax.persistence.Table;
import javax.persistence.Transient;

import lombok.Data;

@Table(name = "user")
@Data
public class User implements Serializable {
	
	private static final long serialVersionUID = 2928122578989901631L;

	@Id
    private Integer id;

    private String username;

    private String password;

    private String nickname;

    private Integer deleted;

    private String mobile;
    
    @Transient
    private List<Role> roles;

}